home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util1 / yk211src.lha / Yak_2.11_Src / Prefs / Include / Hotkey_window.h < prev    next >
C/C++ Source or Header  |  1995-11-16  |  2KB  |  92 lines

  1.  
  2. #ifndef HOTKEY_H
  3.  
  4. #define HOTKEY_H
  5.  
  6. #ifndef INTUITION_INTUITION_H
  7. #include <intuition/intuition.h>
  8. #endif
  9. #ifndef LIBRARIES_GADTOOLS_H
  10. #include <libraries/gadtools.h>
  11. #endif
  12.  
  13. /* HotKeys Window gadgets */
  14.  
  15. #define GDX_Actions        0
  16. #define GDX_Hotkeys        1
  17. #define GDX_Add            2
  18. #define GDX_Delete         3
  19. #define GDX_State          4
  20. #define GDX_Return         5
  21. #define GDX_Name           6
  22. #define GDX_Definition     7
  23. #define GDX_Options        8
  24.  
  25.  
  26. /* Number of gadgets  */
  27.  
  28. #define HotKey_CNT         9
  29.  
  30.  
  31. /* Global variables */
  32.  
  33. #ifdef GADTOOLS
  34. GLOBAL struct Window       *HotKeyWnd;
  35. GLOBAL struct Gadget       *HotKeyGList;
  36. GLOBAL struct Gadget       *HotKeyGadgets[HotKey_CNT];
  37. GLOBAL UWORD                HotKeyWidth;
  38. GLOBAL UWORD                HotKeyHeight;
  39. GLOBAL UBYTE               *HotKeyWdt;
  40. GLOBAL UWORD                HotKeyGTypes[];
  41. GLOBAL struct NewGadget     HotKeyNGad[];
  42. GLOBAL ULONG                HotKeyGTags[];
  43. #endif
  44.  
  45. GLOBAL struct MinList       Actions1List;
  46. GLOBAL struct Node          Actions1Nodes[];
  47.  
  48.  
  49. /* Global prototypes */
  50.  
  51. GLOBAL VOID InitState1Labels  (VOID);
  52. GLOBAL void InitActionsList   (void);
  53. GLOBAL VOID HotKeyRender      (VOID);
  54. GLOBAL int  OpenHotKeyWindow  (VOID);
  55. GLOBAL VOID CloseHotKeyWindow (VOID);
  56. GLOBAL LONG HandleHotKeyIDCMP (VOID);
  57. GLOBAL BOOL ShowHotKeyWindow  (VOID);
  58.  
  59.  
  60. #ifdef MUI
  61. GLOBAL APTR   HotKeyWnd;
  62. GLOBAL APTR   HotKeyObjects[];
  63. GLOBAL UBYTE *HotKeyWdt;
  64. #endif
  65.  
  66. #ifdef BGUI                     /* NMC */
  67. GLOBAL struct Window            *HotKeyWnd;
  68. GLOBAL Object                   *HotKeyObjects[];
  69. #endif
  70.  
  71.  
  72. #if defined(MUI) || defined(BGUI)               /* NMC */
  73.  
  74. #define LV_Actions               HotKeyObjects[GDX_Actions]
  75. #define LV_HotKeys               HotKeyObjects[GDX_Hotkeys]
  76. #define BT_Add                   HotKeyObjects[GDX_Add]
  77. #define BT_Delete                HotKeyObjects[GDX_Delete]
  78. #define CY_State                 HotKeyObjects[GDX_State]      /* MUI  */
  79. #define CH_State                 HotKeyObjects[GDX_State]      /* BGUI */
  80. #define BT_Return                HotKeyObjects[GDX_Return]
  81. #define STR_Name                 HotKeyObjects[GDX_Name]
  82. #define BT_Definition            HotKeyObjects[GDX_Definition]
  83. #define BT_Options               HotKeyObjects[GDX_Options]
  84.  
  85. GLOBAL APTR CreateHotKeyWindow   (VOID);
  86. GLOBAL BOOL ShowHotKeyWindow     (VOID);
  87. GLOBAL VOID CloseHotKeyWindow    (VOID);
  88. GLOBAL LONG HandleHotKeyReturnID (LONG id);
  89. #endif /* BGUI */
  90.  
  91. #endif /* HOTKEY_H */
  92.